package dome2;

public class Dog extends Animal{

    public Dog(String name,int age) {
        super(name,age);    //只能在第一行
        System.out.println("Cat带两个参数的构造方法");
    }

    public void bark(){
        System.out.println(name+"汪汪叫......");
    }

    public void wag(){
        System.out.println(name+"在摇尾巴.......");
    }
}
